class Student {
    public String _name = "Jack";
    public int _age = 10;
    int tall = 178;

    //构造方法
    public Student(String name, int age) {
        this._name = name;
        this._age = age;

        System.out.println("构造方法");
    }

    {
        System.out.println("实例代码块");
    }

    static {
        System.out.println("静态代码块");
    }

    void print() {
        System.out.println("年龄：" + _age);
        System.out.println("姓名：" + _name);
    }
}
